/**
 * 版权所有：厦门市巨龙信息科技有限公司
 * Copyright 2024 Xiamen Dragoninfo Eng. Co. Ltd.
 * All right reserved.
 */
package com.github.alfred.ddd.core.exception;

import com.dragonsoft.qz.enums.IErrorCodeEnum;
import com.dragonsoft.qz.exception.BaseException;

/**
 * 类说明
 *
 * @author chengh
 * @date 2024/1/11 15:47
 */
public class DomainException extends BaseException {
    private static final String DEFAULT_ERR_CODE = "DOMAIN_ERROR";

    public DomainException(String errMessage) {
        super(DEFAULT_ERR_CODE, errMessage);
    }

    public DomainException(String errCode, String errMessage) {
        super(errCode, errMessage);
    }

    public DomainException(String errMessage, Throwable e) {
        super(DEFAULT_ERR_CODE, errMessage, e);
    }

    public DomainException(String errCode, String errMessage, Throwable e) {
        super(errCode, errMessage, e);
    }

    public DomainException(IErrorCodeEnum errorCodeEnum) {
        super(errorCodeEnum);
    }
}
